<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
 <input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >



<div id ="div13" style="display: none">
	<table  id="tblMileStones4" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="30%">动物品种、品系</th>
						<th class="TblHead" align="center"  width="60%">购买单位（可填写多个单位，用分号隔开）</th>
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton" name="selMileStones4" >
						</td>
						
						<td align="center">
							<span name="milestones4|milestone[0]@seq_no" >[index]</span> 
						</td>
						
						<td align="center">
						  <input type="text"  id="content1[0]" name="milestones4|milestone[0]|content1" label="动物品种、品系"  maxlength="10"  onchange="synchron(this)"
						         class="required input_text"  value=""  style="width:80%"/>
						</td>
						
						<td align="center">
						  <input type="text"  id="content2[0]" name="milestones4|milestone[0]|content2" label="动物等级"  maxlength="20"
						         class="required input_text"  value=""  style="width:80%"/>
						</td>	
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/milestones4/milestone" var="milestone">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr>
						<td align="center">
							<input type="radio" class="radiobutton" name="selMileStones4" >
						</td>
						
						<td align="center">
							<span   name="milestones4/milestone[${flag}${index}]@seq_no" ><x:out select="$milestone/@seq_no"/></span> 
						</td>
						
						<td align="center">
						    <input type="text"  id="content1[${flag}${index}]" name="milestones4/milestone[${flag}${index}]/content1" label="动物品种、品系"  maxlength="10"  onchange="synchron(this)"
						           value="<x:out select="$milestone/content1"/>"   style="width:80%"   class="required input_text"/>
						</td>
						                          
						 <td align="center">
						    <input type="text"  id="content2[${flag}${index}]" name="milestones4/milestone[${flag}${index}]/content2" label="动物等级"  maxlength="20" 
						           value="<x:out select="$milestone/content2"/>"   style="width:80%"   class="required input_text"/>
						</td>   
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblMileStones4");
					</script>
				</tbody>
					</table>
					<br/>

	<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones4',20,'实验动物来源和质量保障最多只能填写20条')){addNewRow('tblMileStones4');showDateTag('tblMileStones4');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblMileStones4','selMileStones4')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblMileStones4','selMileStones4')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblMileStones4','实验动物来源和质量保障')">
					</td></tr>
	</table>
	</div>